// sleep function
export const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))

// 判断是否支持 Storage
export const isSupportStorage = () => typeof (Storage) !== 'undefined'

// 判断是否为对象